﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessEntity.FileManagement;
using BusinessEntity.Common;

using DataAccess.Communication;

namespace BusinessAction.FileManagement
{
    public class FileManager
    {
        public SortableCollection<MyFile> SearchFile(string sessionId, MyFile searchMyFile, out string successMessage, out string errorMessage)
        {
            return FileAdapter.SearchFile(sessionId, searchMyFile, out successMessage, out errorMessage);
        }

        public  void UploadFile(string sessionId, MyFile oFile, out string successMessage, out string errorMessage)
        {
            FileAdapter.UploadFile(sessionId, oFile, out successMessage, out errorMessage);  
        }

        public void DeleteFile(string sessionId, int fileId, out string successMessage, out string errorMessage)
        {
            FileAdapter.DeleteFile(sessionId, fileId, out successMessage, out errorMessage);
        }

        public SortableCollection<MyFile> GetFile(string sessionId, out string successMessage, out string errorMessage)
        {
            return FileAdapter.GetFile(sessionId, out successMessage, out errorMessage);
        }

        public SortableCollection<MyFileType> GetFileType(string sessionId, out string successMessage, out string errorMessage)
        {
            return FileAdapter.GetFileType(sessionId, out successMessage, out errorMessage);
        }

        public SortableCollection<DocumentType> GetDocumentType(string sessionId, out string successMessage, out string errorMessage)
        {
            return FileAdapter.GetDocumentType(sessionId, out successMessage, out errorMessage);
        }

        public SortableCollection<CoreUser> GetCoreUsers(string sessionId, out string successMessage, out string errorMessage)
        {
            return FileAdapter.GetCoreUsers(sessionId, out successMessage, out errorMessage);

        }

    }
}
